package com.myfum.wingplayer.entity
{
	[Bindable]
	dynamic public class ContentData extends Data
	{
		public function ContentData()
		{
		}
		
		public var id:int;
		public var menuitem_id:int;
		public var contenttype_id:int;
		public var widgettype:int;
		public var url:String;
		public var duration:Number;
		public var fullscreen:Boolean;
		
		override public function copyValuesFromObject(obj:Object):void{
			super.copyValuesFromObject(obj);
			duration = obj.duration*1000;
		}
		
		public function get isEntityFile():Boolean{
			return contenttype_id == ContentType.FLASH || contenttype_id == ContentType.VIDEO || contenttype_id == ContentType.PHOTO || contenttype_id == ContentType.AUDIO;
		}
	}
}